<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">



    <h:body>
        <ui:composition template="../communityTemplate.xhtml">
            <ui:define name="content">

                <h:form>
                    <table>
                        <tr>
                            <td>
                                Username:  
                            </td>
                            <td>
                                <h:inputText id="usernameBox" value="#{loginBean.name}" size="40" required="TRUE">
                                    <f:validateLength maximum="44" minimum="3"/>
                                </h:inputText>
                                <p:message id="msg1" for="usernameBox" display="text" showDetail="FALSE" showSummary="TRUE"/>
                            </td>
                        </tr>

                        <tr>
                            <td>
                                Password: 
                            </td>
                            <td>
                                <h:inputSecret id="passwordBox" value="#{loginBean.password}" size="40" required="TRUE"> 
                                <f:validateLength maximum="256" minimum="1"/>
                                </h:inputSecret>
                                <p:message id="msg2" for="passwordBox" display="text" showDetail="FALSE" showSummary="TRUE"/>
                            </td>
                        </tr>

                        <tr>
                            <td>

                            </td>
                            <td>
                                <h:commandButton action="#{loginBean.validate()}" value="Login"/>
                            </td>
                        </tr>


                    </table>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>

</html>

